package cn.itcast.com.Thread.ver2;

public class Comsumer implements Runnable{
    private Container container;

    public Comsumer(Container container) {
        this.container = container;
    }

    public void run(){
        while (true){
            try {
                container.eatFodd();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
